

import { createApp } from 'vue'
import {  createPinia } from 'pinia'
import piniaPlugin from "pinia-plugin-persistedstate"

let pinia: any = createPinia()
pinia.use(piniaPlugin)

// pinia 数据持久化
// cnpm i pinia-plugin-persistedstate -S

import App from './App.vue'
import router from './router'

// 引入字体图标
import "./assets/font/iconfont.css";
import "./assets/font01/iconfont.css";
// import "./assets/font02/iconfont.css";

import { Button, Tabbar, TabbarItem,Swipe, SwipeItem,List,Lazyload ,Tab, Tabs,Form, Field, CellGroup ,Toast, ActionSheet,Sticky,Stepper,BackTop,PullRefresh,Empty,SwipeCell,SubmitBar,AddressList,AddressEdit,ImagePreview,Badge} from 'vant';

const app = createApp(App)

app.use(createPinia())
app.use(pinia)
app.use(router)
app.use(Button)
app.use(Tabbar)
app.use(TabbarItem)
app.use(Swipe)
app.use(SwipeItem)
app.use(List)
app.use(Tab)
app.use(Tabs)
app.use(Form)
app.use(Field)
app.use(CellGroup)
app.use(Toast)
app.use(ActionSheet)
app.use(Sticky)
app.use(Stepper)
app.use(BackTop)
app.use(PullRefresh)
app.use(Empty)
app.use(SwipeCell)
app.use(SubmitBar)
app.use(AddressList)
app.use(AddressEdit)
app.use(ImagePreview)
app.use(Badge)
app.use(Lazyload, {
    lazyComponent: true,
})

app.mount('#app')
